package com.hiyee.goods.service;

import com.hiyee.pojo.Product;
import com.hiyee.pojo.bo.GoodsSearchBO;
import com.hiyee.pojo.repo.GoodsInfoRepo;
import com.hiyee.pojo.vo.CustomerGoodsInfoVO;
import com.hiyee.response.PagedGridResult;

/**
 * 商品信息业务接口
 *
 * @author WangBin
 */
public interface GoodsService {

    /**
     * 搜索商品列表
     *
     * @return List
     */
    public PagedGridResult search(GoodsSearchBO goodsSearchBO);

    /**
     * 获取商品详情
     *
     * @param Long id
     * @return CustomerGoodsInfoVO
     */
    public GoodsInfoRepo getInfo(Long id);

    /**
     * 查询多规格商品信息
     *
     * @param Long id
     * @return Product
     */
    public Product getProduct(Long id);
}
